package cn.rentaotao.spring.filter;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author rtt
 * @date 2022/5/12 15:12
 */
public class MyFilter implements Filter {

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
        System.out.println("MyFilter init");
    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        System.out.println("myFilter action");
    }

    @Override
    public void destroy() {

    }
}
